package today.rocky.memory.domain.bo;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Rocky
 * @version 1.0
 * @date 2020/5/22 20:53
 * @description
 */
@Data
public class RefreshParam implements Serializable {

	@NotNull(message = "id不能为空")
	private Long id;

	@Email(message = "邮箱格式不对")
	@NotBlank(message = "邮箱不能为空")
	private String email;

	@NotBlank(message = "用户名不能为空")
	private String nickname;

}
